package com.downguys.domain;

import lombok.Data;

/**
 * 验证码返回值
 *
 * @author xiyang.qiao
 * @date 2017/1/3 - 20:47
 */
@Data
public class VerifyCodeResult {

    /**
     * 验证码token，用于校验
     */
    private String token;

    /**
     * 验证码
     */
    private String verifyCode;

    /**
     * 剩余可用次数
     */
    private int usableCount;

    /**
     * userId
     */
    private int userId;

    /**
     * 发送验证码的安全信息，手机或者邮箱
     */
    private String verify;

    public VerifyCodeResult(String token, String verifyCode, int userId, String verify, int usableCount){

        this.token = token;
        this.verifyCode = verifyCode;
        this.userId = userId;
        this.verify = verify;
        this.usableCount = usableCount;
    }

}
